home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls088.hpux.Z / tls088.hpux / lib / vtcl / vtcl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-20  |  1.9 KB  |  63 lines

  1. /* CVS $Id: vtcl.h,v 1.1 1995/02/03 16:11:06 zibi Exp $ */
  2. /*-------------------------------------------------------------------------
  3.   Copyright (c) 1994                   The Santa Cruz Operation, Inc.
  4.   -------------------------------------------------------------------------
  5.   All rights reserved.  No part of this  program or publication may be
  6.   reproduced, transmitted, transcribed, stored  in a retrieval system,
  7.   or translated into any language or computer language, in any form or
  8.   by any  means,  electronic, mechanical, magnetic, optical, chemical,
  9.   biological, or otherwise, without the  prior written  permission of:
  10.  
  11.            The Santa Cruz Operation, Inc.  (408) 425-7222
  12.            400 Encinal St, Santa Cruz, CA  95060 USA
  13.   -------------------------------------------------------------------------
  14.  
  15.   SCCS  : @(#) vtcl.h 11.2 95/01/31 
  16.   Author: wing
  17.   Date  : 11-Jan-94
  18.   File  : vtcl.h was wstcl.h
  19.  
  20.   Description:
  21.     header file for wstcl routines.  This is used by programs outside
  22.     of wstcl.
  23.  
  24.   Modification History:
  25.   M002,    09.21.94, hops
  26.         This file renamed from wstcl.h
  27.   M001,    13-Apr-94, shawnm
  28.     include tcl.h for Tcl_Interp define
  29.   M000,    11-Jan-94, wing
  30.     created
  31.   -----------------------------------------------------------------------*/
  32.  
  33. #ifndef VTCL_H
  34.  
  35. #define VTCL_H
  36.  
  37. #include <tcl.h>
  38.  
  39. /* Function prototype for function called in response to input or remove */
  40. /* the function should return a Tcl status TCL_OK etc. */
  41. typedef int (*INPUT_PROC)(Tcl_Interp *, int, caddr_t);
  42.  
  43. enum {    INPUT_SUCCESS = 0,    /* everything ok */
  44.     INPUT_DUP,        /* duplicate file descrip */
  45.     INPUT_NOT_FOUND,    /* couldn't find file descip in CRemoveInput */
  46.     INPUT_MEM_ALLOC,    /* memory allocation error */
  47.     INPUT_FAILURE        /* generic failure code */
  48. };
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif 
  53.  
  54. extern int WsAddInput(FILE *, int, INPUT_PROC, INPUT_PROC, caddr_t);
  55. extern int WsRemoveInput(int);
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif 
  60.  
  61. #endif  /* VTCL_H */
  62.  
  63.